<?php

require_once "BaseService.php";

class CompetenciasPracticantesService extends BaseService {

    public function __construct($serviceBaseURL) {
        parent::__construct($serviceBaseURL);
    }

    public function getServiceClass() {
        return "CompetenciasPracticantes";
    }

    function Create(CompetenciasPracticantes $CompetenciaPracticante) {
        $serializer = parent::getSerializer(parent::getMimeType());
        $data = $serializer->serialize($CompetenciaPracticante);
        $response = parent::invokeService("Insert", $data);
        return $response;
    }

    function GetByPracticante($IdPracticante) {
        $response = parent::invokeService("GetByPracticante", $IdPracticante);
        $result = $response;

        if ($this->shouldDecode) {
            Loader::using("models::entities::CompetenciasPracticantes");
            $decoder = parent::getSerializer(parent::getMimeType(), "CompetenciasPracticantes", CompetenciasPracticantes::MAPPING());
            $result = $decoder->deserializeArray($response);
        }

        return $result;
    }

}

?>
